[% setvar title Eliminate bareword filehandles. %]
<div id="archive-notice">
    <h3>This file is part of the Perl 6 Archive</h3>
    <p>To see what is currently happening visit <a href="http://www.perl6.org/">http://www.perl6.org/</a></p>
</div>
<div class='pod'>
<a name='TITLE'></a><h1>TITLE</h1>
<p>Eliminate bareword filehandles.</p>
<a name='VERSION'></a><h1>VERSION</h1>
<pre>  Maintainer: Peter Scott &lt;<a href='mailto:peter@psdt.com'>peter@psdt.com</a>&gt;
  Date: 4 Aug 2000
  Last Modified: 29 Aug 2000
  Mailing List: <a href='mailto:perl6-language@perl.org'>perl6-language@perl.org</a>
  Number: 33
  Version: 2
  Status: Frozen</pre>
<a name='ABSTRACT'></a><h1>ABSTRACT</h1>
<p>Now that scalars (objects) can be used for filehandles, the bareword form
should be eliminated.</p>
<a name='DESCRIPTION'></a><h1>DESCRIPTION</h1>
<p>The venerable bareword form of the filehandle leads to code that is
unnecessarily abstruse given that they can now be stored in
scalars.  Bareword filehandles are not lexical, and require the use of
typeglobs and <code>local</code> to pass them to subroutines, concepts unnecessarily
advanced for such a beginner-type operation.</p>
<a name='IMPLEMENTATION'></a><h1>IMPLEMENTATION</h1>
<p>Easy, hopefully.</p>
<a name='REFERENCES'></a><h1>REFERENCES</h1>
<p><i><a href='http://search.cpan.org/perldoc?perlvar#Typeglobs and Filehandles'>&quot;Typeglobs and Filehandles&quot; in perlvar</a></i></p>
</div>
